package top.abrsm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author WuZH
 * @since 2023-11-18
 */
@Data
@TableName("category_info")
@ApiModel(value = "CategoryEntity对象", description = "")
public class CategoryEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty("课程类型")
    @TableField("categoryName")
    private String categoryName;

    @ApiModelProperty("父Id")
    @TableField("parentId")
    private String parentId;

    @ApiModelProperty("二级分类图标")
    @TableField("categoryIcon")
    private String categoryIcon;

    @ApiModelProperty("商品利率")
    @TableField("rate")
    private String rate;

    @ApiModelProperty("几级类目，只分一二级")
    @TableField("floor")
    private Integer floor;

    @ApiModelProperty("添加时间")
    @TableField("createTime")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("changeTime")
    private Date changeTime;

    @ApiModelProperty("是否再用")
    @TableField("isUsed")
    private Integer isUsed;


}
